﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="pokazBadania.aspx.cs" Inherits="STS.Pacjent.pokazBadania" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Label ID="id_pacjenta" runat="server" Text="Label" Visible="False"></asp:Label>
<asp:Label ID="tekst" runat="server" Text="Label" Visible="False"></asp:Label>
<br />
<br />
Wybierz Badanie:<br />
<asp:DropDownList ID="DropDownList1" runat="server" 
    DataSourceID="SqlDataSource1" DataTextField="Column1" 
    DataValueField="id_badania">
</asp:DropDownList>
<asp:Button ID="OK" runat="server" onclick="OK_Click" Text="OK" />
<asp:SqlDataSource ID="SqlDataSource1" runat="server" 
    ConnectionString="<%$ ConnectionStrings:MGRConnectionString %>" 
    SelectCommand="SELECT id_badania, id_badania+' '+data FROM [badania] WHERE ([id_pacjenta] = @id_pacjenta) ORDER BY [data]">
    <SelectParameters>
        <asp:ControlParameter ControlID="id_pacjenta" Name="id_pacjenta" 
            PropertyName="Text" />
    </SelectParameters>
</asp:SqlDataSource>
<br />
<asp:Panel ID="Panel1" runat="server">
    Nazwa badania:
    <asp:Label ID="nazwa" runat="server" Text="Label"></asp:Label>
    <br />
    Opis Badania:
    <asp:Label ID="opis" runat="server" Text="Label"></asp:Label>
    <br />
    Data badania:
    <asp:Label ID="data" runat="server" Text="Label"></asp:Label>
    <br />
    <asp:Image ID="Image1" runat="server" />
</asp:Panel>
</asp:Content>
